<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="出售中的商品" name="first">
        <Product/>
      </el-tab-pane>
      <el-tab-pane label="仓库中的商品" name="second">仓库中的商品</el-tab-pane>
      <el-tab-pane label="已经售馨商品" name="third">已经售馨商品</el-tab-pane>
      <el-tab-pane label="警戒库存商品" name="fourth">警戒库存商品</el-tab-pane>
      <el-tab-pane label="回收站的商品" name="fifth">回收站的商品</el-tab-pane>
    </el-tabs>
  </div>

</template>

<script>
import Product from "@/components/Product";
export default {
  name: "Goods",
  components:{
    Product,
  },
  data(){
    return{
      activeName: 'first'
    }
  },
  methods:{
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
}
</script>

<style scoped>

</style>
